package com.grape.juc.threadpool.future;
/**
 * 描述:
 * @author: myx
 * @date: 2019-05-08
 * Copyright © 2019-grape. All rights reserved.
 */
public class FutureClient {

	public Data submit(String queryData) {
		FutureData furureData = new FutureData();
		new Thread(new Runnable() {
			@Override
			public void run() {
				RealData realData = new RealData(queryData);
				furureData.setRealData(realData);
			}
		}).start();
		return furureData;
	}
}